.XUI-modal,
.XUI-modal > .modal-mask,
.XUI-modal > .modal-box{
  width: 100%;
  height: 100%;
}
.XUI-modal,
.XUI-modal > .modal-mask{
  position: fixed;
  top: 0;
  left: 0;
}
/*遮罩*/
.XUI-modal > .modal-mask{
  background-color: rgba(0,0,0,.65);
}
/*modal-box*/
.XUI-modal > .modal-box{
  display: -webkit-box;
  -webkit-box-pack: center;
  box-pack: center;
  -webkit-box-align: center;
  box-align: center;
  line-height: 1.65;
  color: #555;
  font-family: '微软雅黑';
}
/*默认弹窗动画*/
.XUI-modal .modal.modal-animate{
  -webkit-animation:XUI-modal-scale 0.15s;
  animation:XUI-modal-scale 0.15s;
}
.XUI-modal .modal{
  width: 85%;
  max-width: 640px;
  background: #fff;
  font-size: 15px;
  position: relative;
  z-index: 1110;
}
/*title*/
.XUI-modal .modal-title{
  width: 100%;
  box-sizing: border-box;
  line-height: 3.8;
  padding: 0 10px;
  font-weight: bold;
  color: #333;
  font-size: 16px;
  border-bottom: 1px solid #ececec;
}
.XUI-modal .modal-content{
  padding: 35px 30px;
  line-height: 1.4;
}
/*按钮*/
.XUI-modal .modal-btn-box{
  position: relative;
  border-top: 1px solid #ececec;
  font-size: 0;
  display: box;
  display: -moz-box;
  display: -webkit-box;
}
.XUI-modal .modal-btn-box span{
  display: block;
  -moz-box-flex: 1;
  box-flex: 1;
  -webkit-box-flex: 1;
  width: 50%;
}
.XUI-modal .modal-btn-box span:nth-child(2){
  border-left: 1px solid #eee;
}
/*show-title*/
.show-title .modal-title{
  position: absolute;
  border-bottom:none;
  top: 2px;
}
.show-title .modal-content{
  padding: 17px 30px;
  padding-top: 50px;
}
/*不同类型的modal样式*/
/*msg*/
.XUI-modal-msg{
  width: auto!important;
}
.XUI-modal-msg .modal-content{
  padding: 10px 20px;
}
/*footer*/
.XUI-modal .XUI-modal-footer{
  width: auto;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: none;
  border-radius: 0;
}
.XUI-modal-footer .modal-title{
  line-height: 40px;
  font-weight: normal;
  color: #898989;
}
.XUI-modal-footer .modal-content{
  padding: 0 10px;
  line-height: 45px;
  border-top:1px solid #eee;
}
.modal-content:nth-last-child(2){
  border-radius: 0 0 5px 5px;
}
.XUI-modal-footer .modal-btn-box{
  margin-top:10px;
}
.XUI-modal-footer .modal-title,
.XUI-modal-footer .modal-btn-box{
  border: none;
}
/*动画*/
.XUI-modal .modal.XUI-modal-upward2{
  -webkit-animation:XUI-modal-upward 0.15s;
  animation:XUI-modal-upward 0.15s;
}
/*公共样式*/
/*圆角*/
.XUI-modal .modal,
.XUI-modal-footer .modal-btn-box{
  border-radius: 5px;
  overflow: hidden;
}
.XUI-modal .modal-title,
.XUI-modal .modal-content{
  text-align: center;
}
.XUI-modal .modal-btn-box span,
.XUI-modal-footer .modal-content{
  text-align: center;
  line-height: 42px;
  font-size: 16px;
  color: #2585e1;
}
/*按下*/
.XUI-modal .modal-btn-box span:active,
.XUI-modal-footer .modal-content:active{
  background: #eee;
}
.XUI-modal-footer .modal-title,
.XUI-modal-footer .modal-content,
.XUI-modal-footer .modal-btn-box{
  background: #fff;
}
/*弹窗动画-*/
/*默认*/
@-webkit-keyframes XUI-modal-scale {
	from {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0)
  }
	to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}
@keyframes XUI-modal-scale {
  from {
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0)
  }
	to {
    opacity: 1;
    -webkit-transform: scale(1);
    transform: scale(1)
  }
}

/*footer-animate*/
@-webkit-keyframes XUI-modal-upward {
	from {
    opacity: 0;
    transform: translateY(105%);
    -webkit-transform: translateY(105%);
  };
	to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
  };
}
@keyframes XUI-modal-upward {
	from {
    opacity: 0;
    transform: translateY(105%);
    -webkit-transform: translateY(105%);
  };
	to {
    opacity: 1;
    transform: translateY(0);
    -webkit-transform: translateY(0);
  };
}
